package com.cqupt.service;

import com.cqupt.model.pojo.Word;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cqupt.model.vo.ExampleVO;
import com.cqupt.model.vo.SpeakVO;

import java.util.List;
import java.util.Map;


public interface WordService extends IService<Word> {

    List<Word> recite(int bookId);

    SpeakVO example(String word);

    List<Word> learn(int bookId,int count);

    List<Word> review(int bookId);

    Map<String, Integer> index(int bookId);

    void known(int bookId, int wordId);

    void forget(int bookId, int wordId);

    List<Word> allWord(int bookId);

    List<Word> getWord(int bookId, String word);

    List<ExampleVO> example2(String word);

    List<Word> getByPage(int bookId, int pageNum);

    Integer queryByWord(String word);
}
